(window["bytedance_secsdk_captcha_jsonp_2.17.4"] = window["bytedance_secsdk_captcha_jsonp_2.17.4"] || []).push([[2], {
    441: function (t, e, n) {
        "use strict";
        n.r(e), function (t) {
            n.d(e, "BrowserOptionTypes", function () {
                return ir
            }), n.d(e, "BrowserReportTypes", function () {
                return ar
            }), n.d(e, "BrowserSlardar", function () {
                return tr
            }), n.d(e, "BrowserTypes", function () {
                return or
            }), n.d(e, "browserClient", function () {
                return Dn
            }), n.d(e, "browserConfig", function () {
                return qn
            }), n.d(e, "browserNormalize", function () {
                return Zn
            }), n.d(e, "browserUtils", function () {
                return Mn
            });
            var r = "undefined" !== typeof globalThis ? globalThis : "undefined" !== typeof window ? window : "undefined" !== typeof t ? t : "undefined" !== typeof self ? self : {};

            function o(t) {
                var e = {exports: {}};
                return t(e, e.exports), e.exports
            }

            var i = function (t) {
                    return t && t.Math == Math && t
                },
                a = i("object" == typeof globalThis && globalThis) || i("object" == typeof window && window) || i("object" == typeof self && self) || i("object" == typeof r && r) || function () {
                    return this
                }() || Function("return this")(), s = function (t) {
                    try {
                        return !!t()
                    } catch (e) {
                        return !0
                    }
                }, l = !s(function () {
                    return 7 != Object.defineProperty({}, 1, {
                        get: function () {
                            return 7
                        }
                    })[1]
                }), c = {}.propertyIsEnumerable, u = Object.getOwnPropertyDescriptor, p = {
                    f: u && !c.call({1: 2}, 1) ? function (t) {
                        var e = u(this, t);
                        return !!e && e.enumerable
                    } : c
                }, d = function (t, e) {
                    return {enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e}
                }, h = {}.toString, f = function (t) {
                    return h.call(t).slice(8, -1)
                }, v = "".split, m = s(function () {
                    return !Object("z").propertyIsEnumerable(0)
                }) ? function (t) {
                    return "String" == f(t) ? v.call(t, "") : Object(t)
                } : Object, g = function (t) {
                    if (void 0 == t) throw TypeError("Can't call method on " + t);
                    return t
                }, y = function (t) {
                    return m(g(t))
                }, _ = function (t) {
                    return "object" === typeof t ? null !== t : "function" === typeof t
                }, b = function (t, e) {
                    if (!_(t)) return t;
                    var n, r;
                    if (e && "function" == typeof (n = t.toString) && !_(r = n.call(t))) return r;
                    if ("function" == typeof (n = t.valueOf) && !_(r = n.call(t))) return r;
                    if (!e && "function" == typeof (n = t.toString) && !_(r = n.call(t))) return r;
                    throw TypeError("Can't convert object to primitive value")
                }, w = {}.hasOwnProperty, S = function (t, e) {
                    return w.call(t, e)
                }, E = a.document, M = _(E) && _(E.createElement), x = !l && !s(function () {
                    return 7 != Object.defineProperty((t = "div", M ? E.createElement(t) : {}), "a", {
                        get: function () {
                            return 7
                        }
                    }).a;
                    var t
                }), R = Object.getOwnPropertyDescriptor, P = {
                    f: l ? R : function (t, e) {
                        if (t = y(t), e = b(e, !0), x) try {
                            return R(t, e)
                        } catch (n) {
                        }
                        if (S(t, e)) return d(!p.f.call(t, e), t[e])
                    }
                }, j = function (t) {
                    if (!_(t)) throw TypeError(String(t) + " is not an object");
                    return t
                }, C = Object.defineProperty, H = {
                    f: l ? C : function (t, e, n) {
                        if (j(t), e = b(e, !0), j(n), x) try {
                            return C(t, e, n)
                        } catch (r) {
                        }
                        if ("get" in n || "set" in n) throw TypeError("Accessors not supported");
                        return "value" in n && (t[e] = n.value), t
                    }
                }, k = l ? function (t, e, n) {
                    return H.f(t, e, d(1, n))
                } : function (t, e, n) {
                    return t[e] = n, t
                }, L = function (t, e) {
                    try {
                        k(a, t, e)
                    } catch (n) {
                        a[t] = e
                    }
                    return e
                }, O = a["__core-js_shared__"] || L("__core-js_shared__", {}), A = Function.toString;
            "function" != typeof O.inspectSource && (O.inspectSource = function (t) {
                return A.call(t)
            });
            var T, D, U, I, q = O.inspectSource, B = a.WeakMap, F = "function" === typeof B && /native code/.test(q(B)),
                N = o(function (t) {
                    (t.exports = function (t, e) {
                        return O[t] || (O[t] = void 0 !== e ? e : {})
                    })("versions", []).push({
                        version: "3.8.1",
                        mode: "global",
                        copyright: "\xa9 2020 Denis Pushkarev (zloirock.ru)"
                    })
                }), J = 0, z = Math.random(), X = function (t) {
                    return "Symbol(" + String(void 0 === t ? "" : t) + ")_" + (++J + z).toString(36)
                }, Q = N("keys"), W = {}, V = a.WeakMap;
            if (F) {
                var G = O.state || (O.state = new V), $ = G.get, Y = G.has, K = G.set;
                T = function (t, e) {
                    return e.facade = t, K.call(G, t, e), e
                }, D = function (t) {
                    return $.call(G, t) || {}
                }, U = function (t) {
                    return Y.call(G, t)
                }
            } else {
                var Z = Q[I = "state"] || (Q[I] = X(I));
                W[Z] = !0, T = function (t, e) {
                    return e.facade = t, k(t, Z, e), e
                }, D = function (t) {
                    return S(t, Z) ? t[Z] : {}
                }, U = function (t) {
                    return S(t, Z)
                }
            }
            var tt, et = {
                    set: T, get: D, has: U, enforce: function (t) {
                        return U(t) ? D(t) : T(t, {})
                    }, getterFor: function (t) {
                        return function (e) {
                            var n;
                            if (!_(e) || (n = D(e)).type !== t) throw TypeError("Incompatible receiver, " + t + " required");
                            return n
                        }
                    }
                }, nt = o(function (t) {
                    var e = et.get, n = et.enforce, r = String(String).split("String");
                    (t.exports = function (t, e, o, i) {
                        var s, l = !!i && !!i.unsafe, c = !!i && !!i.enumerable, u = !!i && !!i.noTargetGet;
                        "function" == typeof o && ("string" != typeof e || S(o, "name") || k(o, "name", e), (s = n(o)).source || (s.source = r.join("string" == typeof e ? e : ""))), t !== a ? (l ? !u && t[e] && (c = !0) : delete t[e], c ? t[e] = o : k(t, e, o)) : c ? t[e] = o : L(e, o)
                    })(Function.prototype, "toString", function () {
                        return "function" == typeof this && e(this).source || q(this)
                    })
                }), rt = a, ot = function (t) {
                    return "function" == typeof t ? t : void 0
                }, it = Math.ceil, at = Math.floor, st = function (t) {
                    return isNaN(t = +t) ? 0 : (t > 0 ? at : it)(t)
                }, lt = Math.min, ct = function (t) {
                    return t > 0 ? lt(st(t), 9007199254740991) : 0
                }, ut = Math.max, pt = Math.min, dt = function (t) {
                    return function (e, n, r) {
                        var o, i = y(e), a = ct(i.length), s = function (t, e) {
                            var n = st(t);
                            return n < 0 ? ut(n + e, 0) : pt(n, e)
                        }(r, a);
                        if (t && n != n) {
                            for (; a > s;) if ((o = i[s++]) != o) return !0
                        } else for (; a > s; s++) if ((t || s in i) && i[s] === n) return t || s || 0;
                        return !t && -1
                    }
                }, ht = {includes: dt(!0), indexOf: dt(!1)}.indexOf, ft = function (t, e) {
                    var n, r = y(t), o = 0, i = [];
                    for (n in r) !S(W, n) && S(r, n) && i.push(n);
                    for (; e.length > o;) S(r, n = e[o++]) && (~ht(i, n) || i.push(n));
                    return i
                },
                vt = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"],
                mt = vt.concat("length", "prototype"), gt = {
                    f: Object.getOwnPropertyNames || function (t) {
                        return ft(t, mt)
                    }
                }, yt = {f: Object.getOwnPropertySymbols}, _t = function (t, e) {
                    return arguments.length < 2 ? ot(rt[t]) || ot(a[t]) : rt[t] && rt[t][e] || a[t] && a[t][e]
                }("Reflect", "ownKeys") || function (t) {
                    var e = gt.f(j(t)), n = yt.f;
                    return n ? e.concat(n(t)) : e
                }, bt = function (t, e) {
                    for (var n = _t(e), r = H.f, o = P.f, i = 0; i < n.length; i++) {
                        var a = n[i];
                        S(t, a) || r(t, a, o(e, a))
                    }
                }, wt = /#|\.prototype\./, St = function (t, e) {
                    var n = Mt[Et(t)];
                    return n == Rt || n != xt && ("function" == typeof e ? s(e) : !!e)
                }, Et = St.normalize = function (t) {
                    return String(t).replace(wt, ".").toLowerCase()
                }, Mt = St.data = {}, xt = St.NATIVE = "N", Rt = St.POLYFILL = "P", Pt = St, jt = P.f,
                Ct = function (t, e) {
                    var n, r, o, i, s, l = t.target, c = t.global, u = t.stat;
                    if (n = c ? a : u ? a[l] || L(l, {}) : (a[l] || {}).prototype) for (r in e) {
                        if (i = e[r], o = t.noTargetGet ? (s = jt(n, r)) && s.value : n[r], !Pt(c ? r : l + (u ? "." : "#") + r, t.forced) && void 0 !== o) {
                            if (typeof i === typeof o) continue;
                            bt(i, o)
                        }
                        (t.sham || o && o.sham) && k(i, "sham", !0), nt(n, r, i, t)
                    }
                }, Ht = function (t, e, n) {
                    if (function (t) {
                        if ("function" != typeof t) throw TypeError(String(t) + " is not a function")
                    }(t), void 0 === e) return t;
                    switch (n) {
                        case 0:
                            return function () {
                                return t.call(e)
                            };
                        case 1:
                            return function (n) {
                                return t.call(e, n)
                            };
                        case 2:
                            return function (n, r) {
                                return t.call(e, n, r)
                            };
                        case 3:
                            return function (n, r, o) {
                                return t.call(e, n, r, o)
                            }
                    }
                    return function () {
                        return t.apply(e, arguments)
                    }
                }, kt = function (t) {
                    return Object(g(t))
                }, Lt = Array.isArray || function (t) {
                    return "Array" == f(t)
                }, Ot = !!Object.getOwnPropertySymbols && !s(function () {
                    return !String(Symbol())
                }), At = Ot && !Symbol.sham && "symbol" == typeof Symbol.iterator, Tt = N("wks"), Dt = a.Symbol,
                Ut = At ? Dt : Dt && Dt.withoutSetter || X,
                It = (S(Tt, tt = "species") || (Ot && S(Dt, tt) ? Tt[tt] = Dt[tt] : Tt[tt] = Ut("Symbol." + tt)), Tt[tt]),
                qt = function (t, e) {
                    var n;
                    return Lt(t) && ("function" != typeof (n = t.constructor) || n !== Array && !Lt(n.prototype) ? _(n) && null === (n = n[It]) && (n = void 0) : n = void 0), new (void 0 === n ? Array : n)(0 === e ? 0 : e)
                }, Bt = [].push, Ft = function (t) {
                    var e = 1 == t, n = 2 == t, r = 3 == t, o = 4 == t, i = 6 == t, a = 7 == t, s = 5 == t || i;
                    return function (l, c, u, p) {
                        for (var d, h, f = kt(l), v = m(f), g = Ht(c, u, 3), y = ct(v.length), _ = 0, b = p || qt, w = e ? b(l, y) : n || a ? b(l, 0) : void 0; y > _; _++) if ((s || _ in v) && (h = g(d = v[_], _, f), t)) if (e) w[_] = h; else if (h) switch (t) {
                            case 3:
                                return !0;
                            case 5:
                                return d;
                            case 6:
                                return _;
                            case 2:
                                Bt.call(w, d)
                        } else switch (t) {
                            case 4:
                                return !1;
                            case 7:
                                Bt.call(w, d)
                        }
                        return i ? -1 : r || o ? o : w
                    }
                }, Nt = {
                    forEach: Ft(0),
                    map: Ft(1),
                    filter: Ft(2),
                    some: Ft(3),
                    every: Ft(4),
                    find: Ft(5),
                    findIndex: Ft(6),
                    filterOut: Ft(7)
                }, Jt = Object.defineProperty, zt = {}, Xt = function (t) {
                    throw t
                }, Qt = Nt.forEach, Wt = function (t, e) {
                    var n = [][t];
                    return !!n && s(function () {
                        n.call(null, e || function () {
                            throw 1
                        }, 1)
                    })
                }("forEach"), Vt = function (t, e) {
                    if (S(zt, t)) return zt[t];
                    e || (e = {});
                    var n = [][t], r = !!S(e, "ACCESSORS") && e.ACCESSORS, o = S(e, 0) ? e[0] : Xt,
                        i = S(e, 1) ? e[1] : void 0;
                    return zt[t] = !!n && !s(function () {
                        if (r && !l) return !0;
                        var t = {length: -1};
                        r ? Jt(t, 1, {enumerable: !0, get: Xt}) : t[1] = 1, n.call(t, o, i)
                    })
                }("forEach"), Gt = Wt && Vt ? [].forEach : function (t) {
                    return Qt(this, t, arguments.length > 1 ? arguments[1] : void 0)
                };
            Ct({target: "Array", proto: !0, forced: [].forEach != Gt}, {forEach: Gt});
            var $t, Yt, Kt = Function.call;
            $t = "forEach", Ht(Kt, a["Array"].prototype[$t], Yt);
            !function (t) {
                var e, n;
                if (t && !("href" in (null !== (n = null === (e = t.URL) || void 0 === e ? void 0 : e.prototype) && void 0 !== n ? n : {}))) {
                    o.prototype = {
                        toString: function () {
                            return this.href
                        }, get href() {
                            return this._anchorElement.href
                        }, set href(t) {
                            this._anchorElement.href = t
                        }, get protocol() {
                            return this._anchorElement.protocol
                        }, set protocol(t) {
                            this._anchorElement.protocol = t
                        }, get host() {
                            return this._anchorElement.host
                        }, set host(t) {
                            this._anchorElement.host = t
                        }, get hostname() {
                            return this._anchorElement.hostname
                        }, set hostname(t) {
                            this._anchorElement.hostname = t
                        }, get port() {
                            return this._anchorElement.port
                        }, set port(t) {
                            this._anchorElement.port = t
                        }, get pathname() {
                            return this._anchorElement.pathname
                        }, set pathname(t) {
                            this._anchorElement.pathname = t
                        }, get search() {
                            return this._anchorElement.search
                        }, set search(t) {
                            this._anchorElement.search = t
                        }, get hash() {
                            return this._anchorElement.hash
                        }, set hash(t) {
                            this._anchorElement.hash = t
                        }
                    };
                    var r = t.URL || t.webkitURL || t.mozURL;
                    o.createObjectURL = function (t) {
                        return r.createObjectURL(t)
                    }, o.revokeObjectURL = function (t) {
                        return r.revokeObjectURL(t)
                    }, Object.defineProperty(o.prototype, "toString", {enumerable: !1}), t.URL = o
                }

                function o(t, e) {
                    if (!t) throw new TypeError("Invalid argument");
                    var n = document.implementation.createHTMLDocument("");
                    if (e) {
                        var r = n.createElement("base");
                        r.href = e, n.head.appendChild(r)
                    }
                    var o = n.createElement("a");
                    if (o.href = t, n.body.appendChild(o), ":" === o.protocol || !/:/.test(o.href)) throw new TypeError("Invalid URL");
                    Object.defineProperty(this, "_anchorElement", {value: o})
                }
            }("undefined" !== typeof r ? r : "undefined" !== typeof window ? window : "undefined" !== typeof self ? self : r), function () {
                if (!Element.prototype.addEventListener) {
                    var t = [], e = function (e, n) {
                        var r = this, o = function (t) {
                            t.target = t.srcElement, t.currentTarget = r, "undefined" !== typeof n.handleEvent ? n.handleEvent(t) : n.call(r, t)
                        };
                        if ("DOMContentLoaded" === e) {
                            var i = function (t) {
                                "complete" === document.readyState && o(t)
                            };
                            if (document.attachEvent("onreadystatechange", i), t.push({
                                object: this,
                                type: e,
                                listener: n,
                                wrapper: i
                            }), "complete" === document.readyState) {
                                var a = new Event;
                                a.srcElement = window, i(a)
                            }
                        } else this.attachEvent("on" + e, o), t.push({object: this, type: e, listener: n, wrapper: o})
                    }, n = function (e, n) {
                        for (var r = 0; r < t.length;) {
                            var o = t[r];
                            if (o.object === this && o.type === e && o.listener === n) {
                                "DOMContentLoaded" === e ? this.detachEvent("onreadystatechange", o.wrapper) : this.detachEvent("on" + e, o.wrapper), t.splice(r, 1);
                                break
                            }
                            ++r
                        }
                    };
                    Element.prototype.addEventListener = e, Element.prototype.removeEventListener = n, HTMLDocument && !HTMLDocument.prototype.addEventListener && (HTMLDocument.prototype.addEventListener = e, HTMLDocument.prototype.removeEventListener = n), Window && !Window.prototype.addEventListener && (Window.prototype.addEventListener = e, Window.prototype.removeEventListener = n)
                }
            }();
            var Zt = Object.keys || function (t) {
                return ft(t, vt)
            };
            Ct({
                target: "Object", stat: !0, forced: s(function () {
                    Zt(1)
                })
            }, {
                keys: function (t) {
                    return Zt(kt(t))
                }
            });
            rt.Object.keys;
            var te = function (t, e) {
                return (te = Object.setPrototypeOf || {__proto__: []} instanceof Array && function (t, e) {
                    t.__proto__ = e
                } || function (t, e) {
                    for (var n in e) e.hasOwnProperty(n) && (t[n] = e[n])
                })(t, e)
            };

            function ee(t, e) {
                function n() {
                    this.constructor = t
                }

                te(t, e), t.prototype = null === e ? Object.create(e) : (n.prototype = e.prototype, new n)
            }

            var ne = function () {
                return (ne = Object.assign || function (t) {
                    for (var e, n = 1, r = arguments.length; n < r; n++) for (var o in e = arguments[n]) Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
                    return t
                }).apply(this, arguments)
            };

            function re(t) {
                var e = "function" === typeof Symbol && Symbol.iterator, n = e && t[e], r = 0;
                if (n) return n.call(t);
                if (t && "number" === typeof t.length) return {
                    next: function () {
                        return t && r >= t.length && (t = void 0), {value: t && t[r++], done: !t}
                    }
                };
                throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.")
            }

            function oe(t, e) {
                var n = "function" === typeof Symbol && t[Symbol.iterator];
                if (!n) return t;
                var r, o, i = n.call(t), a = [];
                try {
                    for (; (void 0 === e || e-- > 0) && !(r = i.next()).done;) a.push(r.value)
                } catch (s) {
                    o = {error: s}
                } finally {
                    try {
                        r && !r.done && (n = i.return) && n.call(i)
                    } finally {
                        if (o) throw o.error
                    }
                }
                return a
            }

            function ie() {
                for (var t = [], e = 0; e < arguments.length; e++) t = t.concat(oe(arguments[e]));
                return t
            }

            function ae(t) {
                return "object" === typeof t && null !== t && !ce(t)
            }

            function se(t) {
                return "function" === typeof t
            }

            function le(t) {
                return "[object String]" === Object.prototype.toString.call(t)
            }

            function ce(t) {
                return "[object Array]" === Object.prototype.toString.call(t)
            }

            function ue(t, e) {
                return Object.prototype.hasOwnProperty.call(t, e)
            }

            function pe(t, e) {
                if (ae(t)) for (var n in t) ue(t, n) && e.call(null, n, t[n])
            }

            function de() {
                for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
                for (var n = {}, r = 0; r < t.length;) n = me(n, t[r]), r++;
                return n
            }

            var he = Object.getPrototypeOf ? Object.getPrototypeOf({}) : null;

            function fe(t) {
                return Object.getPrototypeOf ? Object.getPrototypeOf(t) === he : t.constructor === Object
            }

            function ve(t, e) {
                var n = ne({}, t);
                for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && void 0 !== e[r] && (ae(e[r]) && fe(e[r]) ? n[r] = me(ae(t[r]) ? t[r] : {}, e[r]) : ce(e[r]) ? n[r] = e[r].slice() : n[r] = e[r]);
                return n
            }

            function me(t, e) {
                var n = ne({}, t);
                for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && void 0 !== e[r] && (ae(e[r]) && fe(e[r]) ? n[r] = me(ae(t[r]) ? t[r] : {}, e[r]) : ce(t[r]) || ce(e[r]) ? n[r] = ge(t[r], e[r]) : n[r] = e[r]);
                return n
            }

            function ge(t, e) {
                var n = ce(t) ? t : [], r = ce(e) ? e : [];
                return Array.prototype.concat.call(n, r).map(function (t) {
                    return t instanceof RegExp ? t : ce(t) || ae(t) && fe(t) ? ce(t) ? ge([], t) : me({}, t) : t
                })
            }

            function ye(t, e) {
                if (!ce(t)) return !1;
                if (0 === t.length) return !1;
                for (var n = 0; n < t.length;) {
                    if (t[n] === e) return !0;
                    n++
                }
                return !1
            }

            function _e() {
                if (!("fetch" in window)) return !1;
                try {
                    return new Headers, new Request(""), new Response, !0
                } catch (t) {
                    return !1
                }
            }

            function be() {
                return !!ae(window)
            }

            function we() {
                return !(!be() || !ae(window.performance)) && !!ae(window.performance.timing)
            }

            function Se(t) {
                var e = function (t) {
                    var e = {};
                    return pe(t, function (t, n) {
                        e[encodeURIComponent(t)] = encodeURIComponent(n)
                    }), e
                }(function (t) {
                    if (!ae(t)) return {};
                    var e = {};
                    return pe(t, function (t, n) {
                        ae(n) || ce(n) ? e[t] = JSON.stringify(n) : e[t] = n
                    }), e
                }(t)), n = [];
                return pe(e, function (t, e) {
                    n.push(t + "=" + e)
                }), n.join("&")
            }

            function Ee(t) {
                var e = document.createElement("a");
                e.href = t;
                var n = e.pathname || "/";
                return "/" !== n[0] && (n = "/" + n), {
                    href: e.href,
                    protocol: e.protocol.slice(0, -1),
                    hostname: e.hostname,
                    host: e.host,
                    search: e.search,
                    pathname: n,
                    hash: e.hash
                }
            }

            var Me = function (t) {
                if (!le(t)) return !1;
                var e = t;
                return se(e.toLowerCase) && (e = e.toLowerCase()), ye(["x-tt-token"], e)
            };

            function xe() {
            }

            function Re(t) {
                var e = "[object String]" === Object.prototype.toString.call(t);
                return t ? e ? t.length : ArrayBuffer && t instanceof ArrayBuffer ? t.byteLength : window.Blob && t instanceof Blob ? t.size : t.length ? t.length : 0 : 0
            }

            function Pe(t) {
                if (!t) return "";
                if (!se(t.forEach)) return "";
                var e = [];
                return t.forEach(function (t) {
                    if (ce(t) && t[0] && !Me(t[0])) {
                        var n = t[0], r = t[1] || "";
                        e.push(n + ": " + r)
                    }
                }), e.join("\r\n")
            }

            function je(t) {
                var e = {}, n = Ee(t);
                return e.ax_protocol = n.protocol, e.ax_domain = n.hostname, e.ax_path = n.pathname, e.ax_url = (n.href || t).split("?")[0], e
            }

            function Ce(t, e) {
                var n = Ee(t), r = Ee(e);
                return n.protocol === r.protocol && n.host === r.host
            }

            function He(t) {
                return ce(t) && t.length ? function (t) {
                    for (var e = [], n = t.length, r = 0; r < n; r++) {
                        var o = t[r];
                        le(o) ? e.push(o.replace(/([.*+?^=!:${}()|[\]/\\])/g, "\\$1")) : o && o.source && e.push(o.source)
                    }
                    return new RegExp(e.join("|"), "i")
                }(t) : null
            }

            var ke = function (t) {
                var e, n;
                return void 0 === t && (t = window), be() && (null === (e = t.screen) || void 0 === e ? void 0 : e.width) && (null === (n = t.screen) || void 0 === n ? void 0 : n.height) ? t.screen.width + "x" + t.screen.height : "0x0"
            }, Le = function () {
                var t = navigator.connection || navigator.mozConnection || navigator.webkitConnection;
                return t && le(t.effectiveType) ? t.effectiveType : "unknown"
            }, Oe = function (t, e) {
                se(t) && (se(window.addEventListener) && (window.addEventListener("unload", t), window.addEventListener("beforeunload", t), window.addEventListener("pagehide", t)), se(document.addEventListener) && document.addEventListener("visibilitychange", function (n) {
                    se(e) ? e(n) : "hidden" === document.visibilityState && t(n)
                }))
            };

            function Ae(t) {
                return !!t && Math.random() < Number(t)
            }

            var Te = function () {
                function t(e) {
                    var n = this;
                    this.postEvent = function (e) {
                        var r = ne(ne({}, e), n.getCommonParams());
                        t.post(n.url, r)
                    }, this.getEvent = function (e) {
                        var r = Se(ne(ne({}, e), n.getCommonParams())), o = n.url + "?" + r;
                        t.get(o)
                    }, this.getURL = function () {
                        return n.url
                    }, this.options = e, this.url = this.options.reportURL
                }

                return t.post = function (t, e, n) {
                    var r, o,
                        i = null !== (r = null === n || void 0 === n ? void 0 : n.success) && void 0 !== r ? r : xe,
                        a = null !== (o = null === n || void 0 === n ? void 0 : n.fail) && void 0 !== o ? o : xe,
                        s = new XMLHttpRequest;
                    s.open("POST", t, !0), s.setRequestHeader("Content-Type", "application/json"), s.send(JSON.stringify(e)), s.onload = function () {
                        try {
                            if (this.responseText) {
                                var t = JSON.parse(this.responseText);
                                i(t)
                            } else i({})
                        } catch (e) {
                            a()
                        }
                    }, s.onerror = function () {
                        a()
                    }, s.onabort = function () {
                        a()
                    }
                }, t.get = function (t, e) {
                    var n, r, o, i,
                        a = null !== (n = null === e || void 0 === e ? void 0 : e.success) && void 0 !== n ? n : xe,
                        s = null !== (r = null === e || void 0 === e ? void 0 : e.fail) && void 0 !== r ? r : xe,
                        l = null !== (o = null === e || void 0 === e ? void 0 : e.getResponse) && void 0 !== o ? o : xe,
                        c = null !== (i = null === e || void 0 === e ? void 0 : e.getResponseText) && void 0 !== i ? i : xe,
                        u = new XMLHttpRequest;
                    (null === e || void 0 === e ? void 0 : e.withCredentials) && (u.withCredentials = e.withCredentials), u.open("GET", t), u.send(), u.onload = function () {
                        l(null === this || void 0 === this ? void 0 : this.response), c(this.responseText);
                        try {
                            if (this.responseText) {
                                var t = JSON.parse(this.responseText);
                                a(t)
                            } else a({})
                        } catch (e) {
                            s()
                        }
                    }, u.onerror = function () {
                        s()
                    }, u.onabort = function () {
                        s()
                    }
                }, t.prototype.getCommonParams = function () {
                    return {timestamp: Date.now()}
                }, t
            }();

            function De(t, e, n) {
                if (void 0 === n && (n = "0"), n.length > 1) throw new TypeError("expect the length of pad to be 1, but got " + t.length);
                return t.length >= e ? t : "" + Array.from({length: e - t.length}).fill(n).join("") + t
            }

            function Ue(t) {
                return t ? Math.floor(Math.random() * Math.pow(10, 12)).toString(16).substr(0, t) : ""
            }

            var Ie = "00", qe = 4294967295;

            function Be(t, e, n) {
                void 0 === n && (n = "01");
                var r = "" + De((Date.now() % qe).toString(16), 8) + function (t) {
                    var e;
                    if ("number" === typeof t) e = t; else {
                        var n = t.replace(/-/g, "");
                        if (!/^[0-9]+$/.test(n)) {
                            if (n.length > 18) return "18" + Ue(18);
                            var r = 22 - n.length - 4;
                            return "" + De("" + n.length, 2) + n + Ue(r)
                        }
                        e = parseInt(n, 10)
                    }
                    var o = e.toString(16), i = 22 - o.length - 4;
                    return "" + De("" + o.length, 2) + o + Ue(i)
                }(t) + ("string" === typeof e ? Ue(4) : De(e.toString(16), 4));
                return Ie + "-" + r + "-" + r.substr(0, 16) + "-" + n
            }

            function Fe() {
                var t = function () {
                    for (var t = new Array(16), e = 0, n = 0; n < 16; n++) 0 === (3 & n) && (e = 4294967296 * Math.random()), t[n] = e >>> ((3 & n) << 3) & 255;
                    return t
                }();
                return t[6] = 15 & t[6] | 64, t[8] = 63 & t[8] | 128, function (t) {
                    for (var e = [], n = 0; n < 256; ++n) e[n] = (n + 256).toString(16).substr(1);
                    var r = 0, o = e;
                    return [o[t[r++]], o[t[r++]], o[t[r++]], o[t[r++]], "-", o[t[r++]], o[t[r++]], "-", o[t[r++]], o[t[r++]], "-", o[t[r++]], o[t[r++]], "-", o[t[r++]], o[t[r++]], o[t[r++]], o[t[r++]], o[t[r++]], o[t[r++]]].join("")
                }(t)
            }

            var Ne = 1, Je = .1, ze = .1, Xe = ["/log/sentry/"], Qe = 8e3, We = 4e3, Ve = Fe(), Ge = Fe(),
                $e = function () {
                };

            function Ye(t, e) {
                if (void 0 === e && (e = $e), t && le(t) && be() && ae(document) && se(document.createElement)) {
                    var n = document.createElement("script"), r = document.head;
                    ae(n) && ae(r) && (n.src = t, n.async = !0, n.crossOrigin = "anonymous", n.onload = function () {
                        e()
                    }, se(r.appendChild) && r.appendChild(n))
                }
            }

            var Ke = "AjaxMonitor", Ze = function () {
                function t(t) {
                    this.name = Ke, this.callback = xe, this.traceId = null, this.props = t
                }

                return t.prototype.setup = function (t) {
                    void 0 === t && (t = xe), se(XMLHttpRequest) && (this.callback = t, this.start())
                }, t.prototype.updateConfig = function (t) {
                    this.props = de({}, this.props, t)
                }, t.prototype.start = function () {
                    this.hookXMLHttpRequestOpen(), this.hookXMLHttpRequestSend(), this.hookXMLHttpRequestSetRequestHeader()
                }, t.prototype.hookXMLHttpRequestSetRequestHeader = function () {
                    var t = XMLHttpRequest.prototype.setRequestHeader || xe;
                    XMLHttpRequest.prototype.setRequestHeader = function () {
                        for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                        return this._requestHeaders = this._requestHeaders || [], this._requestHeaders.push(e), t.apply(this, e)
                    }
                }, t.prototype.hookXMLHttpRequestOpen = function () {
                    var t = XMLHttpRequest.prototype.open;
                    XMLHttpRequest.prototype.open = function () {
                        for (var e = [], n = 0; n < arguments.length; n++) e[n] = arguments[n];
                        var r = e[0], o = e[1];
                        return this._url = o || "", this._method = (null === r || void 0 === r ? void 0 : r.toLowerCase()) || "", t.apply(this, e)
                    }
                }, t.prototype.hookXMLHttpRequestSend = function () {
                    var t = this, e = XMLHttpRequest.prototype.send;
                    XMLHttpRequest.prototype.send = function () {
                        for (var n, r = [], o = 0; o < arguments.length; o++) r[o] = arguments[o];
                        if (t.checkAddTrace(this._url)) {
                            var i = null !== (n = null === t || void 0 === t ? void 0 : t.props.commonParams) && void 0 !== n ? n : {},
                                a = i.bid, s = i.web_id;
                            a && s && (t.traceId = Be(s, a), this.setRequestHeader("x-tt-trace-id", t.traceId))
                        }
                        return t.hookXMLHttpRequestOnreadystatechange.call(this, t), this._start = Date.now(), this._data = null === r || void 0 === r ? void 0 : r[0], e.apply(this, r)
                    }
                }, t.prototype.checkAddTrace = function (t) {
                    var e, n, r = null !== (e = this.props.commonParams) && void 0 !== e ? e : {}, o = r.bid,
                        i = r.web_id,
                        a = (null !== (n = this.props.ajaxMonitorOptions) && void 0 !== n ? n : {}).sampleHitTrace,
                        s = Ce(location.href, t);
                    return o && i && a && s
                }, t.prototype.collectErrorRequest = function () {
                    var t, e;
                    return null !== (e = null === (t = this.props.ajaxMonitorOptions) || void 0 === t ? void 0 : t.errorRequestCollect) && void 0 !== e && e
                }, t.prototype.hookXMLHttpRequestOnreadystatechange = function (t) {
                    var e = this.onreadystatechange, n = this;
                    this.onreadystatechange = function () {
                        for (var r, o, i, a, s, l, c = [], u = 0; u < arguments.length; u++) c[u] = arguments[u];
                        if (4 === this.readyState) {
                            var p = {
                                ev_type: "ajax",
                                ax_status: (this.status || 0).toString(),
                                ax_type: n._method,
                                ax_request_header: Pe(n._requestHeaders || []),
                                ax_domain: "",
                                ax_duration: 0,
                                ax_path: "",
                                ax_protocol: "",
                                ax_response_header: "",
                                ax_size: 0,
                                ax_url: ""
                            };
                            if ("function" === typeof this.getAllResponseHeaders && (p.ax_response_header = function (t) {
                                if (le(t)) {
                                    var e = t.split("\r\n"), n = [];
                                    return e.forEach(function (t, e) {
                                        if (t && se(t.split)) {
                                            var r = t.split(": ");
                                            n.push([r[0], r[1]])
                                        }
                                    }), Pe(n)
                                }
                                return ae(t) ? Pe(Object.keys(t).map(function (e) {
                                    return [e, t[e]]
                                })) : t
                            }(this.getAllResponseHeaders())), t.checkAddTrace(n._url)) {
                                var d = null !== (r = t.traceId) && void 0 !== r ? r : this.getResponseHeader("x-tt-trace-id");
                                d && (p.trace_id = d, p.trace_host = null !== (o = this.getResponseHeader("x-tt-trace-host")) && void 0 !== o ? o : void 0, p.log_id = null !== (i = this.getResponseHeader("x-tt-logid")) && void 0 !== i ? i : void 0)
                            }
                            p.ax_duration = Date.now() - n._start, 200 === this.status && (p.ax_size = function (t) {
                                var e = 0;
                                if ("" === t.responseType || "text" === t.responseType) e = Re(t.responseText); else if (t.response) e = Re(t.response); else try {
                                    e = Re(t.responseText)
                                } catch (n) {
                                    e = 0
                                }
                                return e
                            }(this)), p = ne(ne({}, p), je(n._url)), t.collectErrorRequest() && "2" !== p.ax_status[0] && "3" !== p.ax_status[0] && (p.ax_request = {
                                body: n._data ? "" + n._data : void 0,
                                search: null === (a = Ee(n._url)) || void 0 === a ? void 0 : a.search,
                                content_type: null === (l = null === (s = n._requestHeaders) || void 0 === s ? void 0 : s.find(function (t) {
                                    return "content-type" === t[0].toLowerCase()
                                })) || void 0 === l ? void 0 : l[1]
                            }), se(t.callback) && t.callback({name: t.name, type: "get", event: p})
                        }
                        if (e) return e.apply(this, c)
                    }
                }, t.monitorName = Ke, t
            }();

            function tn(t) {
                return t instanceof Request
            }

            var en = "FetchMonitor", nn = function () {
                function t(t) {
                    this.name = en, this.callback = xe, this.props = t
                }

                return t.prototype.updateConfig = function (t) {
                    this.props = de({}, this.props, t)
                }, t.prototype.setup = function (t) {
                    void 0 === t && (t = xe), _e() && (this.callback = t, this.start())
                }, t.prototype.start = function () {
                    _e() && this.hookFetch()
                }, t.prototype.checkAddTrace = function (t) {
                    var e, n, r, o,
                        i = null !== (n = null === (e = this.props) || void 0 === e ? void 0 : e.commonParams) && void 0 !== n ? n : {},
                        a = i.bid, s = i.web_id,
                        l = (null !== (o = null === (r = null === this || void 0 === this ? void 0 : this.props) || void 0 === r ? void 0 : r.ajaxMonitorOptions) && void 0 !== o ? o : {}).sampleHitTrace,
                        c = Ce(location.href, t);
                    return a && s && l && c
                }, t.prototype.updateAxRequest = function (t, e, n) {
                    var r, o, i;
                    if (this.collectErrorRequest() && "2" !== t.ax_status[0] && "3" !== t.ax_status[0]) {
                        var a = this.getFetchUrl(e, !0);
                        t.ax_request = {
                            body: null === (r = this.getFetchBody(e, n)) || void 0 === r ? void 0 : r.toString(),
                            search: le(a) ? null === (o = Ee(a)) || void 0 === o ? void 0 : o.search : void 0,
                            content_type: null === (i = null === n || void 0 === n ? void 0 : n.headers) || void 0 === i ? void 0 : i["Content-Type"]
                        }
                    }
                }, t.prototype.collectErrorRequest = function () {
                    var t, e;
                    return null !== (e = null === (t = this.props.ajaxMonitorOptions) || void 0 === t ? void 0 : t.errorRequestCollect) && void 0 !== e && e
                }, t.prototype.hookFetch = function () {
                    var t = this, e = this, n = window.fetch;
                    window.fetch = function (r, o) {
                        var i;
                        void 0 === o && (o = {});
                        var a = t.getFetchUrl(r);
                        if (!function (t) {
                            if (!le(t)) return !1;
                            var e = oe(t.split(":"), 2), n = e[0];
                            return !e[1] || "http" === n || "https" === n
                        }(a)) return n(r, o);
                        var s = null !== (i = t.props.commonParams) && void 0 !== i ? i : {}, l = s.bid, c = s.web_id,
                            u = Date.now(), p = {ev_type: "ajax"};
                        try {
                            e.checkAddTrace(a) && (o.headers = new Headers(function (t, e) {
                                var n = new Headers;
                                if (tn(t) && t.headers && se(t.headers.forEach) && t.headers.forEach(function (t, e) {
                                    n.append(e, t)
                                }), e.headers) {
                                    var r = new Headers(e.headers);
                                    r.forEach(function (t, e) {
                                        n.append(e, t)
                                    })
                                }
                                return n
                            }(r, o)), l && c && (p.trace_id = Be(l, c), o.headers.append("x-tt-trace-id", p.trace_id)))
                        } catch (d) {
                        }
                        return p.ax_type = t.getFetchMethod(r, o), p = ne(ne({}, p), je(a)), n(r, o).then(function (n) {
                            var i, s, l;
                            return p.ax_status = (n.status || 0).toString(), p.ax_duration = Date.now() - u, p.ax_response_header = e.getAllHeaders(n.headers), p.ax_request_header = e.getAllHeaders(o.headers), n.headers && se(n.headers.has) ? (n.headers.has("content-length") ? p.ax_size = Number(n.headers.get("content-length")) || 0 : p.ax_size = 0, e.checkAddTrace(a) && (n.headers.has("x-tt-trace-host") && (p.trace_host = null !== (i = n.headers.get("x-tt-trace-host")) && void 0 !== i ? i : void 0), n.headers.has("x-tt-trace-id") && (p.trace_id = null !== (s = n.headers.get("x-tt-trace-id")) && void 0 !== s ? s : void 0), n.headers.has("x-tt-logid") && (p.log_id = null !== (l = n.headers.get("x-tt-logid")) && void 0 !== l ? l : void 0))) : p.ax_size = 0, t.updateAxRequest(p, r, o), se(e.callback) && e.callback({
                                name: e.name,
                                type: "get",
                                event: p
                            }), n
                        }, function (n) {
                            return p.ax_status = "0", p.ax_size = 0, p.ax_duration = Date.now() - u, t.updateAxRequest(p, r, o), se(e.callback) && e.callback({
                                name: e.name,
                                type: "get",
                                event: p
                            }), Promise.reject(n)
                        })
                    }
                }, t.prototype.getFetchUrl = function (t, e) {
                    void 0 === e && (e = !1);
                    var n = "";
                    return n = tn(t) ? t.url : t, e || (n = le(n) ? n.split("?")[0] : n), n
                }, t.prototype.getFetchMethod = function (t, e) {
                    var n, r,
                        o = null !== (n = null === e || void 0 === e ? void 0 : e.method) && void 0 !== n ? n : "get";
                    return tn(t) && (o = null !== (r = t.method) && void 0 !== r ? r : o), o.toLowerCase()
                }, t.prototype.getFetchBody = function (t, e) {
                    return tn(t) ? t.body : null === e || void 0 === e ? void 0 : e.body
                }, t.prototype.getAllHeaders = function (t) {
                    if (!t || "function" !== typeof t.forEach) return "";
                    var e = [];
                    return t.forEach(function (t, n) {
                        e.push([n, t])
                    }), Pe(e)
                }, t.monitorName = en, t
            }();
            var rn = "FMPMonitor", on = function () {
                    function t() {
                        var t = this;
                        this.name = rn, this.callback = xe, this.disconnect = function () {
                            var e, n;
                            null === (n = null === (e = t.observer) || void 0 === e ? void 0 : e.disconnect) || void 0 === n || n.call(e)
                        }, this.getLoadFmp = function () {
                            var e = t.getFmpInternal(), n = e ? t.getTimeGap() + e : 0, r = t.formatEvent(n);
                            return t.callback(r), r
                        }, this.getFmp = function () {
                            var e = t.getFmpInternal(), n = t.formatEvent(e);
                            return t.callback(n), n
                        }, this.startTime = Date.now(), this.list = [], this.observer = new MutationObserver(this.count.bind(this))
                    }

                    return t.prototype.setup = function (t) {
                        if (be()) return be() && "function" === typeof window.MutationObserver ? void (se(document.querySelector) && (this.callback = t && se(t) ? t : function () {
                        }, this.startTime = Date.now(), this.list = [], se(this.observer.observe) && this.observer.observe(document, {
                            childList: !0,
                            subtree: !0
                        }))) : null
                    }, t.prototype.count = function () {
                        var t = Date.now() - this.startTime, e = document.querySelector("body");
                        e ? this.list.push({score: this.score(e, 1, !1), time: t}) : this.list.push({score: 0, time: t})
                    }, t.prototype.score = function (t, e, n) {
                        var r = 0, o = t.tagName;
                        if ("SCRIPT" !== o && "STYLE" !== o && "META" !== o && "HEAD" !== o) {
                            var i = t.children ? t.children.length : 0;
                            if (i > 0) for (var a = t.children, s = i - 1; s >= 0; s--) r += this.score(a[s], e + 1, r > 0);
                            if (r <= 0 && !n) {
                                if (!t.getBoundingClientRect || !se(t.getBoundingClientRect)) return 0;
                                var l = t.getBoundingClientRect();
                                if (!l) return 0;
                                if (l.top > window.innerHeight) return 0;
                                if (l.height <= 0) return 0
                            }
                            r += 1 + .5 * e
                        }
                        return r
                    }, t.prototype.getFmpInternal = function () {
                        if (!this.observer) return 0;
                        if (this.disconnect(), !this.list.length) return 0;
                        for (var t = {
                            time: this.list[0].time,
                            rate: 0
                        }, e = 1; e < this.list.length; e++) if (this.list[e].time >= this.list[e - 1].time) {
                            var n = this.list[e].score - this.list[e - 1].score;
                            t.rate < n && (t = {time: this.list[e].time, rate: n})
                        }
                        return t.time
                    }, t.prototype.getTimeGap = function () {
                        return we() ? this.startTime - performance.timing.navigationStart : 0
                    }, t.prototype.formatEvent = function (t) {
                        return {name: this.name, type: "post", event: {ev_type: "fmp", fmp: t}}
                    }, t.monitorName = rn, t
                }(), an = "PathMonitor", sn = function () {
                    function t() {
                        this.name = an, this.callback = xe
                    }

                    return t.prototype.setup = function (t) {
                        be() && (this.callback = t, this.start())
                    }, t.prototype.start = function () {
                        this.monitorHashChange(), be() && ae(window.history) && se(window.history.pushState) && se(window.history.replaceState) && (this.monitorPushState(), this.monitorReplaceState())
                    }, t.prototype.monitorHashChange = function () {
                        var t = this;
                        window.addEventListener("hashchange", function () {
                            var e = t.parseHash(location.hash);
                            e && t.pathChangeHandler(t.getPath(e), "hash")
                        })
                    }, t.prototype.monitorPushState = function () {
                        var t = this, e = window.history.pushState;
                        e && (window.history.pushState = function () {
                            for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
                            return t.handleHistoryStateChange.apply(t, ie(n)), e.apply(this, n)
                        })
                    }, t.prototype.monitorReplaceState = function () {
                        var t = this, e = window.history.replaceState;
                        e && (window.history.replaceState = function () {
                            for (var n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
                            return t.handleHistoryStateChange.apply(t, ie(n)), e.apply(this, n)
                        })
                    }, t.prototype.pathChangeHandler = function (t, e) {
                        le(t) && se(this.callback) && this.callback({
                            name: this.name,
                            type: "get",
                            event: {ev_type: "pageview", path: t, type: e}
                        })
                    }, t.prototype.handleHistoryStateChange = function (t, e, n) {
                        if (n) {
                            var r = this.parseURL(n), o = this.parseURL(location.href);
                            r && o && (r.pathname === o.pathname ? r.hash !== o.hash && this.pathChangeHandler(this.getPath(r.hash), "hash") : this.pathChangeHandler(this.getPath(r.pathname), "pathname"))
                        }
                    }, t.prototype.parseURL = function (t) {
                        if (!t) return null;
                        if ("string" !== typeof t) return null;
                        if (t.match(/^\/[^\/]/)) return new URL(location.protocol + "//" + location.host + t);
                        try {
                            return new URL(t)
                        } catch (e) {
                            return null
                        }
                    }, t.prototype.parseHash = function (t) {
                        return t ? "string" !== typeof t ? "/" : t.replace(/^#/, "") : "/"
                    }, t.prototype.getPath = function (t) {
                        var e = t && "string" === typeof t ? t.replace(/^(https?:)?\/\//, "").replace(/\?.*$/, "") : "";
                        return e = this.parseHash(e)
                    }, t.monitorName = an, t
                }(), ln = function () {
                    function t() {
                    }

                    return t.prototype.sendEvent = function (t) {
                        var e = this.getEventToBeSent(t);
                        e && this.idleSendEvent(e)
                    }, t.prototype.getEventToBeSent = function (t) {
                        var e = this._modifyEvent(t);
                        if (this._shouldSend(e)) return e
                    }, t.prototype._modifyEvent = function (t) {
                        return t
                    }, t.prototype._shouldSend = function (t) {
                        return !0
                    }, t.prototype._send = function (t) {
                    }, t.prototype.idleSendEvent = function (t) {
                        this._send(t)
                    }, t
                }(), cn = 10, un = 1e3, pn = function (t) {
                    function e(e) {
                        var n, r, o = t.call(this) || this;
                        return o.reportQueue = [], o.isReady = !0, o.batchReportLength = null !== (n = e.maxBatchReportLength) && void 0 !== n ? n : cn, o.batchReportWait = null !== (r = e.batchReportWait) && void 0 !== r ? r : un, o.batchReportTimeout = null, o
                    }

                    return ee(e, t), Object.defineProperty(e.prototype, "ready", {
                        get: function () {
                            return this.isReady
                        }, set: function (t) {
                            this.isReady = t, this.isReady && this._uploadQueue()
                        }, enumerable: !1, configurable: !0
                    }), e.prototype._send = function (t) {
                        var e = this, n = this.buildParams(t);
                        null === n || function (t) {
                            return void 0 === t
                        }(n) || (this.reportQueue.push(n), this.isReady && (this.reportQueue.length >= this.batchReportLength && this._uploadQueue(), this.batchReportTimeout && clearTimeout(this.batchReportTimeout), this.batchReportTimeout = setTimeout(function () {
                            e._uploadQueue()
                        }, this.batchReportWait)))
                    }, e.prototype._uploadQueue = function () {
                        if (this.reportQueue.length && this.ready) {
                            var t = {ev_type: "batch", list: this.reportQueue};
                            this.reportQueue = [], this._request({event: t, type: "post"})
                        }
                    }, e.prototype._request = function (t) {
                    }, e
                }(ln), dn = "https://sf1-scmcdn-tos.pstatp.com/goofy/slardar/fe/sdk/plugins",
                hn = dn + "/sentry.3.6.9.cn.js", fn = dn + "/behavior.3.6.9.cn.js", vn = "i.snssdk.com";

            function mn(t) {
                return !!t && Math.random() < Number(t)
            }

            function gn(t, e) {
                return ae(t) ? ae(e) ? ne(ne({}, t), {overrides: e}) : t : {}
            }

            var yn = function (t) {
                return "https://" + (null !== t && void 0 !== t ? t : vn) + "/log/sentry/v2/api/slardar/main/"
            }, _n = function (t) {
                return "https://" + (null !== t && void 0 !== t ? t : vn) + "/log/sentry/v2/api/slardar/batch/"
            }, bn = function (t) {
                return "https://" + (null !== t && void 0 !== t ? t : vn) + "/slardar/sdk_setting"
            };

            function wn(t) {
                return "error" === t.type
            }

            function Sn(t) {
                return "unhandledrejection" === t.type
            }

            function En(t) {
                var e, n, r;
                if ((null === (e = window.__SLARDAR__) || void 0 === e ? void 0 : e.plugins) && ce(null === (n = window.__SLARDAR__) || void 0 === n ? void 0 : n.plugins)) {
                    var o = null === (r = window.__SLARDAR__) || void 0 === r ? void 0 : r.plugins, i = void 0;
                    return o.forEach(function (e) {
                        e.version === t.version && e[t.name] && (i = e[t.name])
                    }), i
                }
            }

            var Mn = Object.freeze({
                __proto__: null,
                isHitBySampleRate: mn,
                rebuildSendData: gn,
                getSingleReportURL: yn,
                getBatchReportURL: _n,
                getSettingURL: bn,
                isErrorEvent: wn,
                isPromiseRejectionEvent: Sn,
                getMonitors: function (t, e) {
                    var n;
                    return t.forEach(function (t) {
                        t.name === e && (n = t)
                    }), n
                },
                addPlugin: function (t) {
                    var e, n;
                    if (window.__SLARDAR__ || (window.__SLARDAR__ = {}), window.__SLARDAR__) {
                        var r = t.plugin.version, o = ((e = {version: r})[t.pluginName] = t.plugin, e),
                            i = null !== (n = window.__SLARDAR__.plugins) && void 0 !== n ? n : [], a = [], s = !1;
                        i.forEach(function (e) {
                            e.version === r && ("SetMonitors" !== t.pluginName || e.SetMonitors || (e[t.pluginName] = t.plugin), "SetSentryMonitors" !== t.pluginName || e.SetSentryMonitors || (e[t.pluginName] = t.plugin), s = !0), a.push(e)
                        }), s || a.push(o), window.__SLARDAR__.plugins = a
                    }
                },
                getPlugin: En
            }), xn = function (t) {
                function e(e) {
                    var n, r = t.call(this, null !== e && void 0 !== e ? e : {reportURL: ""}) || this;
                    return r.setTransport = function () {
                        r.transport || (r.transport = new Te({reportURL: r.getReportURL()}), r.updateStatus())
                    }, r.uploadQueue = function () {
                        r._uploadQueue()
                    }, r.updateConfig = function (t) {
                        var e, n, o,
                            i = null === (n = null === (e = r.options) || void 0 === e ? void 0 : e.commonParams) || void 0 === n ? void 0 : n.pid;
                        r.options = r.normalizeOptions(t), i && (null === (o = null === t || void 0 === t ? void 0 : t.commonParams) || void 0 === o ? void 0 : o.pid) && t.commonParams.pid !== i && r.sendPageview()
                    }, r.sendPageview = function () {
                        se(r.sendEvent) && r.sendEvent({
                            name: "PageViewMonitor",
                            type: "get",
                            event: {ev_type: "pageview"}
                        })
                    }, r.sendEvent = function (e) {
                        r.chechIsReady() ? t.prototype.sendEvent.call(r, e) : r.preQueue.push(e)
                    }, r.reportURL = null !== (n = null === e || void 0 === e ? void 0 : e.reportURL) && void 0 !== n ? n : "", r.preQueue = [], r.clientStatus = 0, r.enable = !1, r
                }

                return ee(e, t), e.prototype.setEnable = function (t) {
                    this.enable || (this.enable = t, this.enable && this.updateStatus())
                }, Object.defineProperty(e.prototype, "contextAgent", {
                    get: function () {
                        var t = this, e = {
                            set: function (n, r) {
                                return t.options ? (t.options.commonParams.context || (t.options.commonParams.context = {}), t.options.commonParams.context[n] = r, e) : e
                            }, delete: function (n) {
                                var r;
                                return (null === (r = t.options) || void 0 === r ? void 0 : r.commonParams.context) && "string" !== typeof t.options.commonParams.context && ue(t.options.commonParams.context, n) && delete t.options.commonParams.context[n], e
                            }, clear: function () {
                                return t.options ? (t.options.commonParams.context = {}, e) : e
                            }, get: function (e) {
                                var n, r, o;
                                return null === (o = null === (r = null === (n = t.options) || void 0 === n ? void 0 : n.commonParams) || void 0 === r ? void 0 : r.context) || void 0 === o ? void 0 : o[e]
                            }, toObject: function () {
                                var e, n, r;
                                return "string" === typeof (null === (e = t.options) || void 0 === e ? void 0 : e.commonParams.context) ? {} : ne({}, null === (r = null === (n = t.options) || void 0 === n ? void 0 : n.commonParams) || void 0 === r ? void 0 : r.context)
                            }
                        };
                        return e
                    }, enumerable: !1, configurable: !0
                }), e.prototype._shouldSend = function (t) {
                    var e, n;
                    if (!(null === (e = this.options) || void 0 === e ? void 0 : e.monitors) || !t || !ae(t) || !(null === (n = t.event) || void 0 === n ? void 0 : n.ev_type)) return !1;
                    var r = this.options.monitors;
                    if ("AjaxMonitor" === t.name || "FetchMonitor" === t.name) {
                        var o = He(Xe || []);
                        if (o && o.test(t.event.ax_url)) return !1
                    }
                    return !!r.BaseMonitor.webIDHit || !!r.BaseMonitor.sampleHit && ("PathMonitor" === t.name ? Pn({
                        sendParams: t,
                        pageViewMonitor: r.PageViewMonitor,
                        baseMonitor: r.BaseMonitor
                    }) : "PageViewMonitor" === t.name ? jn({pageViewMonitor: r.PageViewMonitor}) : "AjaxMonitor" === t.name || "FetchMonitor" === t.name ? Rn({
                        sendParams: t,
                        ajaxMonitor: r.AjaxMonitor
                    }) : "PerformanceMonitor" === t.name ? Cn({performanceMonitor: r.PerformanceMonitor}) : "EmitMonitor" === t.name ? Hn({
                        sendParams: t,
                        flexibleMonitor: r.FlexibleMonitor
                    }) : "StaticErrorMonitor" === t.name ? kn({
                        sendParams: t,
                        staticErrorMonitor: r.StaticErrorMonitor
                    }) : "HijackMonitor" === t.name ? Ln({hijackMonitor: r.HijackMonitor}) : "JSErrorMonitor" !== t.name || On({jsErrorMonitor: r.JSErrorMonitor}))
                }, e.prototype._modifyEvent = function (t) {
                    var e;
                    if (!(null === (e = this.options) || void 0 === e ? void 0 : e.monitors) || !t || !ae(t)) return {};
                    var n = this.options.monitors;
                    return "PerformanceMonitor" === t.name ? An({
                        sendParams: t,
                        performanceMonitor: n.PerformanceMonitor
                    }) : "PathMonitor" === t.name ? Tn({
                        sendParams: t,
                        baseMonitor: n.BaseMonitor,
                        effect: this.updateConfig
                    }) : t
                }, e.prototype.buildParams = function (t) {
                    var e, n, r, o, i, a = t.event || {}, s = t.overrides,
                        l = ne({}, null !== (n = null === (e = this.options) || void 0 === e ? void 0 : e.commonParams) && void 0 !== n ? n : {});
                    if (ae(null === s || void 0 === s ? void 0 : s.context)) {
                        var c = ne(ne({}, null !== (r = ae(l.context) && l.context) && void 0 !== r ? r : {}), null !== (o = null === s || void 0 === s ? void 0 : s.context) && void 0 !== o ? o : {});
                        l.context = c
                    }
                    var u = ne(ne(ne({}, a), null !== l && void 0 !== l ? l : {}), a);
                    return u = this.normalizeEvent(u), (null === (i = this.options) || void 0 === i ? void 0 : i.custom) && se(this.options.custom.beforeSend) && (u = this.options.custom.beforeSend(u || {})), u
                }, e.prototype._request = function (t) {
                    var e;
                    if (t && t.event) {
                        var n = t.type, r = t.event;
                        if ("beacon" === (null === (e = this.options) || void 0 === e ? void 0 : e.commonParams.report_type) && navigator && navigator.sendBeacon) {
                            var o = JSON.stringify(r);
                            navigator.sendBeacon(this.getReportURL(), o)
                        } else this.transport && ("get" !== n ? "post" === n && this.transport.postEvent(r) : this.transport.getEvent(r))
                    }
                }, e.prototype.chechIsReady = function () {
                    return 2 === this.clientStatus
                }, e.prototype.updateStatus = function () {
                    var e = this;
                    switch (this.clientStatus) {
                        case 0:
                            this.clientStatus = 1;
                            break;
                        case 1:
                            if (this.clientStatus = 2, !this.preQueue.length) return;
                            this.preQueue.forEach(function (n) {
                                t.prototype.sendEvent.call(e, n)
                            }), this.preQueue = []
                    }
                }, e.prototype.getBatchReportURL = function () {
                    var t;
                    return "https://" + (null === (t = this.options) || void 0 === t ? void 0 : t.commonParams.report_domain) + "/log/sentry/v2/api/slardar/batch/"
                }, e.prototype.getReportURL = function () {
                    return this.reportURL || this.getBatchReportURL()
                }, e.prototype.normalizeOptions = function (t) {
                    var e;
                    return de({}, null !== (e = this.options) && void 0 !== e ? e : {}, t)
                }, e.prototype.normalizeEvent = function (t) {
                    var e = ne(ne({}, t), {url: window.location.href});
                    return ae(t.context) && (e.context = JSON.stringify(t.context)), e || {}
                }, e
            }(pn);

            function Rn(t) {
                var e = t.sendParams, n = t.ajaxMonitor;
                if (!n) return !0;
                if (n.webIDHit) return !0;
                if (!n.sampleHit) return !1;
                var r = n.whitelistUrls;
                if (ce(r) && r.length > 0) {
                    var o = He(n.whitelistUrls || []);
                    return !(!o || !o.test(e.event.ax_url))
                }
                var i = He(n.ignore || []);
                if (i && i.test(e.event.ax_url)) return !1;
                var a = n.statusCodeSample;
                if (a && ue(a, e.event.ax_status)) return mn(a[e.event.ax_status]);
                var s = n.requestUrlSample;
                if (s) {
                    var l = !1, c = !1;
                    if (s.forEach(function (t) {
                        if (!l) {
                            var n = He([t.url]);
                            (null === n || void 0 === n ? void 0 : n.test(e.event.ax_url)) && (l = !0, c = mn(t.sampleRate))
                        }
                    }), l) return c
                }
                return !0
            }

            function Pn(t) {
                var e = t.sendParams, n = t.pageViewMonitor, r = t.baseMonitor;
                return 1 === r.appTypeSetting.type && e.event.type === r.appTypeSetting.SPA && (!n || (!!n.webIDHit || !!n.sampleHit))
            }

            function jn(t) {
                var e = t.pageViewMonitor;
                return !e || (!!e.webIDHit || !!e.sampleHit)
            }

            function Cn(t) {
                var e = t.performanceMonitor;
                return !e || (!!e.webIDHit || !!e.sampleHit)
            }

            function Hn(t) {
                var e = t.sendParams, n = t.flexibleMonitor;
                if (!n) return !0;
                if (n.webIDHit) return !0;
                if (!n.sampleHit) return !1;
                var r = n.eventNameHit;
                if (r) {
                    var o = e.event.flexible_data_list[0].event_name;
                    if (r && ue(r, o)) return mn(r[o])
                }
                return !0
            }

            function kn(t) {
                var e = t.sendParams, n = t.staticErrorMonitor;
                if (!n) return !0;
                if (n.webIDHit) return !0;
                if (!n.sampleHit) return !1;
                var r = He(n.ignore || []);
                return !r || !r.test(e.event.st_src)
            }

            function Ln(t) {
                var e = t.hijackMonitor;
                return !e || (!!e.webIDHit || !!e.sampleHit)
            }

            function On(t) {
                var e = t.jsErrorMonitor;
                return !e || (!!e.webIDHit || !!e.sampleHit)
            }

            function An(t) {
                var e, n = t.sendParams, r = t.performanceMonitor;
                if (!r) return n;
                if (!we()) return {};
                if (n.event.isAsync) e = n.event.load > r.spaSlowSessionTime; else {
                    var o = window.performance.timing;
                    e = o.loadEventEnd - o.navigationStart > r.slowSessionTime
                }
                if (n.event.resources && ce(n.event.resources)) {
                    var i = He(r.geckoUrls || []);
                    n.event.resources.forEach(function (t, e) {
                        var r, o, a, s;
                        (null === (r = n.event.resources) || void 0 === r ? void 0 : r[e]) && ae(null === (o = n.event.resources) || void 0 === o ? void 0 : o[e]) && se(null === (a = n.event.resources) || void 0 === a ? void 0 : a[e].toJSON) && (n.event.resources[e] = null === (s = n.event.resources) || void 0 === s ? void 0 : s[e].toJSON(), n.event.resources[e].is_gecko = i && i.test(t.name || "") ? "1" : "0")
                    })
                }
                return r.webIDHitStaticResource || r.sampleHitStaticResource ? n.event.upload_reason = "sample" : e ? n.event.upload_reason = "slow_session" : (delete n.event.resources, n.event.has_resource = 0), n
            }

            function Tn(t) {
                var e = t.sendParams, n = t.baseMonitor, r = t.effect;
                return 1 === n.appTypeSetting.type && n.appTypeSetting.SPA === e.event.type && (r({commonParams: {pid: e.event.path}}), delete e.event.type, delete e.event.path), {}
            }

            var Dn = Object.freeze({
                __proto__: null,
                BrowserClient: xn,
                shouldSendAjaxEvent: Rn,
                shouldSendPathEvent: Pn,
                shouldSendPageViewEvent: jn,
                shouldSendPerformanceEvent: Cn,
                shouldSendFlexibleEvent: Hn,
                shouldSendStaticErrorEvent: kn,
                shouldSendHijackEvent: Ln,
                shouldSendJSErrorEvent: On,
                modifyPerformanceEvent: An,
                modifyPathEvent: Tn
            }), Un = function () {
                var t = "";
                return (null === document || void 0 === document ? void 0 : document.cookie) && (t = function (t, e) {
                    var n, r;
                    if (!t || !e) return "";
                    var o = t.split(";"), i = {};
                    try {
                        for (var a = re(o), s = a.next(); !s.done; s = a.next()) {
                            var l = s.value.split("="), c = le(l[0]) && l[0].trim();
                            c && le(l[1]) && (i[c] = l[1].trim())
                        }
                    } catch (u) {
                        n = {error: u}
                    } finally {
                        try {
                            s && !s.done && (r = a.return) && r.call(a)
                        } finally {
                            if (n) throw n.error
                        }
                    }
                    return i[e] || ""
                }(document.cookie, "MONITOR_WEB_ID")), t
            };

            function In(t) {
                return de({}, {
                    commonParams: {
                        version: "",
                        hostname: window.location.hostname,
                        protocol: window.location.protocol.slice(0, -1),
                        url: window.location.href,
                        slardar_session_id: Ve,
                        sample_rate: Ne,
                        pid: location.pathname,
                        report_domain: vn,
                        screen_resolution: ke(),
                        network_type: Le(),
                        bid: "",
                        context: {},
                        slardar_web_id: Un() || Ge,
                        report_type: "xhr",
                        performanceAuto: !0,
                        reportURLSingle: "",
                        region: "cn",
                        env: "production"
                    },
                    flags: {
                        hookPath: !0,
                        hookXHR: !0,
                        hookFetch: !0,
                        enableSizeStats: !0,
                        enableFMP: !0,
                        enablePerformance: !0,
                        enableResourcePerformance: !0,
                        enableStaticError: !0,
                        enableCatchJSError: !0,
                        enableCatchGlobalJSError: !0,
                        enableCatchJSErrorV2: !1,
                        enableCrash: !0,
                        enableMemoryRecord: !0,
                        enableFPSJankTimesMonitor: !0,
                        enableBreadcrumb: !0,
                        hookConsole: !1,
                        hookDom: !0
                    },
                    monitors: {
                        BaseMonitor: {
                            appTypeSetting: {type: 0, SPA: "", renderType: 0},
                            webIDHit: !1,
                            sampleHit: Ae(1)
                        },
                        PageViewMonitor: {webIDHit: !1, sampleHit: Ae(1)},
                        JSErrorMonitor: {
                            webIDHit: !1,
                            sampleHit: Ae(1),
                            webIDHitBehavior: Ae(0),
                            sampleHitBehavior: Ae(0),
                            ignoreErrors: [],
                            whitelistUrls: [],
                            blacklistUrls: [],
                            download_link: ""
                        },
                        AjaxMonitor: {
                            webIDHit: !1,
                            sampleHit: Ae(1),
                            sampleHitTrace: Ae(0),
                            ignore: Xe,
                            abort: !1,
                            whitelistUrls: [],
                            statusCodeSample: {},
                            requestUrlSample: [],
                            errorRequestCollect: !1
                        },
                        PerformanceMonitor: {
                            webIDHit: !1,
                            sampleHit: Ae(1),
                            webIDHitStaticResource: !1,
                            sampleHitStaticResource: Ae(Je),
                            slowSessionTime: Qe,
                            spaSlowSessionTime: We,
                            geckoUrls: [],
                            interval: 0,
                            checkPoint: []
                        },
                        FlexibleMonitor: {webIDHit: !1, sampleHit: Ae(1), eventNameHit: {}, eventNameSampleHit: Ae(1)},
                        StaticErrorMonitor: {webIDHit: !1, sampleHit: Ae(1), ignore: Xe},
                        HijackMonitor: {webIDHit: !1, sampleHit: Ae(ze)}
                    },
                    plugins: {
                        render: {enable: 0},
                        spa: {enable: 0, type: ""},
                        behavior: {enable: 0, slardar_web_ids: [], sample_rate: 0, download_link: fn},
                        sentry: {
                            enable: 0,
                            behavior_enable: 0,
                            behavior_sample_rate: 0,
                            behavior_slardar_web_ids: [],
                            download_link: hn
                        }
                    },
                    custom: {
                        beforeSend: function (t) {
                            return t
                        }
                    }
                }, t)
            }

            var qn = Object.freeze({
                __proto__: null, getSlardarWebId: Un, getDefaultBaseClientConfigFlags: function () {
                    return {
                        hookPath: !0,
                        hookXHR: !0,
                        hookFetch: !0,
                        enableSizeStats: !0,
                        enableFMP: !0,
                        enablePerformance: !0,
                        enableStaticError: !0,
                        enableCatchJSError: !0,
                        enableCrash: !0,
                        enableMemoryRecord: !0,
                        enableFPSJankTimesMonitor: !0,
                        enableBreadcrumb: !0,
                        hookConsole: !1,
                        hookDom: !0
                    }
                }, getDefaultBaseClientConfig: In
            }), Bn = function (t, e) {
                var n = !1;
                return t ? (t.forEach(function (t) {
                    n || !t.condition.is_default && "slardar_web_id" === t.condition.field && ye(t.condition.values, e.web_id) && (n = !0)
                }), n) : n
            }, Fn = function (t) {
                var e = !1;
                return !t || (t.forEach(function (t) {
                    t.condition.field && e || (e = mn(Number(t.value)))
                }), e)
            }, Nn = function (t) {
                var e = [];
                if (t) try {
                    e = JSON.parse(t)
                } catch (n) {
                    e = []
                }
                return e
            }, Jn = function (t) {
                var e = [];
                return t.forEach(function (t) {
                    if (t.value) {
                        var n = Nn(t.value);
                        e.push.apply(e, ie(n))
                    }
                }), e
            }, zn = function (t, e) {
                var n, r;
                void 0 === e && (e = !1);
                try {
                    for (var o = re(t), i = o.next(); !i.done; i = o.next()) {
                        var a = i.value;
                        if (a.value) return "true" === a.value
                    }
                } catch (s) {
                    n = {error: s}
                } finally {
                    try {
                        i && !i.done && (r = o.return) && r.call(o)
                    } finally {
                        if (n) throw n.error
                    }
                }
                return e
            }, Xn = function (t) {
                var e = [];
                return t.forEach(function (t) {
                    "pid" === t.condition.field.toLowerCase() && "like" === t.condition.op.toLowerCase() && t.value ? e.push({
                        pids: Nn(t.value),
                        value: parseInt(t.value, 10),
                        isDefault: !1
                    }) : t.condition.is_default && e.push({pids: [], value: parseInt(t.value, 10), isDefault: !0})
                }), e
            }, Qn = function (t, e) {
                var n = {}, r = [];
                return t.forEach(function (t) {
                    t.condition.field === e && t.condition.values && t.condition.values.forEach(function (e) {
                        ue(n, e) || (n[e] = Number(t.value) || 0, r.push({url: e, sampleRate: n[e]}))
                    })
                }), {flatten: n, list: r}
            }, Wn = function (t) {
                var e, n, r = t.setting, o = t.info, i = de({
                    PageViewMonitor: {},
                    JSErrorMonitor: {},
                    AjaxMonitor: {},
                    PerformanceMonitor: {},
                    FlexibleMonitor: {},
                    StaticErrorMonitor: {},
                    HijackMonitor: {},
                    BaseMonitor: {appTypeSetting: {}}
                }, r.monitors);
                r.ajaxWhitelistUrls && ce(r.ajaxWhitelistUrls) && (i.AjaxMonitor.whitelistUrls = (i.AjaxMonitor.whitelistUrls || []).concat(r.ajaxWhitelistUrls)), r.ignoreAjax && ce(r.ignoreAjax) && (i.AjaxMonitor.ignore = (i.AjaxMonitor.ignore || []).concat(r.ignoreAjax)), ue(r, "geckoUrls") && (i.PerformanceMonitor.geckoUrls = r.geckoUrls), r.ignoreStatic && ce(r.ignoreStatic) && (i.StaticErrorMonitor.ignore = (i.StaticErrorMonitor.ignore || []).concat(r.ignoreStatic)), (null === (e = r.plugins) || void 0 === e ? void 0 : e.sentry) && (i.JSErrorMonitor = ne(ne({}, i.JSErrorMonitor || {}), r.plugins.sentry)), r.errorRelease && (i.JSErrorMonitor.release = r.errorRelease), r.ignoreErrors && ce(r.ignoreErrors) && (i.JSErrorMonitor.ignoreErrors = r.ignoreErrors), r.errorBlacklistUrls && ce(r.errorBlacklistUrls) && (i.JSErrorMonitor.blacklistUrls = r.errorBlacklistUrls), r.errorWhitelistUrls && ce(r.errorWhitelistUrls) && (i.JSErrorMonitor.whitelistUrls = r.errorWhitelistUrls), ue(r, "sampleRate") && (i.BaseMonitor.sampleHit = mn(r.sampleRate));
                var a = r.plugins;
                if (a && ae(a)) {
                    if (ue(a, "spa")) {
                        var s = a.spa;
                        s && ue(s, "enable") && (i.BaseMonitor.appTypeSetting.type = Number(s.enable)), s && ue(s, "type") && (i.BaseMonitor.appTypeSetting.SPA = s.type)
                    }
                    if (a.render) {
                        var l = null === (n = r.plugins) || void 0 === n ? void 0 : n.render;
                        if (l && ae(l) && ue(l, "enable")) {
                            var c = [{pids: [], value: l.enable, isDefault: !0}];
                            i.BaseMonitor.appTypeSetting.renderType = Kn({renderRules: c, pid: o.pid})
                        }
                    }
                }
                return i
            }, Vn = function (t) {
                var e;
                return void 0 === t && (t = {}), de({
                    sentry: {},
                    behavior: {},
                    spa: {},
                    render: {}
                }, null !== (e = t.plugins) && void 0 !== e ? e : {})
            }, Gn = function (t) {
                var e;
                void 0 === t && (t = {});
                var n = de({}, null !== (e = t.commonParams) && void 0 !== e ? e : {});
                if (!ae(t)) return n;
                var r = ["bid", "context", "pid", "slardar_web_id", "slardar_session_id", "performanceAuto", "report_type", "region", "env"];
                return pe(t, function (t, e) {
                    ye(r, t) && ("report_domain" === t && "mon-va.byteoversea.com" === e ? n.region = "maliva" : n[t] = e)
                }), pe({
                    cookieid: "slardar_web_id",
                    sampleRate: "sample_rate",
                    reportDomain: "report_domain",
                    domain: "report_domain",
                    sample_rate: "sample_rate",
                    slardar_web_id: "slardar_web_id"
                }, function (e, r) {
                    ue(t, e) && (n[r] = t[e])
                }), n.slardar_web_id && (n.slardar_web_id = n.slardar_web_id.toString()), n
            }, $n = function (t) {
                var e;
                void 0 === t && (t = {});
                var n = de({}, null !== (e = t.flags) && void 0 !== e ? e : {});
                if (!ae(t)) return n;
                var r = ["hookPath", "hookXHR", "hookFetch", "enableSizeStats", "enableFMP", "enablePerformance", "enableStaticError", "enableCatchJSError", "enableCatchJSErrorV2", "enableCatchGlobalJSError", "enableResourcePerformance", "enableCrash", "enableMemoryRecord", "enableFPSJankTimesMonitor", "enableBreadcrumb", "hookConsole", "hookDom"];
                return pe(t, function (t, e) {
                    ye(r, t) && (n[t] = e)
                }), n
            };

            function Yn(t, e) {
                var n, r, o, i, a, s, l = {
                    PageViewMonitor: {},
                    JSErrorMonitor: {},
                    AjaxMonitor: {},
                    PerformanceMonitor: {},
                    FlexibleMonitor: {},
                    StaticErrorMonitor: {},
                    HijackMonitor: {},
                    BaseMonitor: {}
                }, c = t.setting;
                if ((null === (r = null === (n = c.page_view) || void 0 === n ? void 0 : n.enable_rate) || void 0 === r ? void 0 : r.length) && (l.PageViewMonitor.webIDHit = Bn(c.page_view.enable_rate, e), l.PageViewMonitor.sampleHit = Fn(c.page_view.enable_rate)), c.jserr && ((null === (o = c.jserr.enable_rate) || void 0 === o ? void 0 : o.length) && (l.JSErrorMonitor.webIDHit = Bn(c.jserr.enable_rate, e), l.JSErrorMonitor.sampleHit = Fn(c.jserr.enable_rate)), c.jserr.ignore_errors && (l.JSErrorMonitor.ignoreErrors = Jn(c.jserr.ignore_errors)), c.jserr.blacklist_urls && (l.JSErrorMonitor.blacklistUrls = Jn(c.jserr.blacklist_urls)), c.jserr.whitelist_urls && (l.JSErrorMonitor.whitelistUrls = Jn(c.jserr.whitelist_urls))), c.ajax && (c.ajax.enable_rate && (l.AjaxMonitor.webIDHit = Bn(c.ajax.enable_rate, e), l.AjaxMonitor.sampleHit = Fn(c.ajax.enable_rate)), c.ajax.request_sample_rate && (l.AjaxMonitor.statusCodeSample = Qn(c.ajax.request_sample_rate, "status_code").flatten, l.AjaxMonitor.requestUrlSample = Qn(c.ajax.request_sample_rate, "request_url").list), c.ajax.trace_rate && (l.AjaxMonitor.sampleHitTrace = Fn(c.ajax.trace_rate)), c.ajax.enable_request_param_collect_on_error && (l.AjaxMonitor.errorRequestCollect = zn(c.ajax.enable_request_param_collect_on_error))), (null === (i = c.static_resource) || void 0 === i ? void 0 : i.enable_rate) && (l.PerformanceMonitor.webIDHitStaticResource = Bn(c.static_resource.enable_rate, e), l.PerformanceMonitor.sampleHitStaticResource = Fn(c.static_resource.enable_rate)), (null === (a = c.performance) || void 0 === a ? void 0 : a.enable_rate) && (l.PerformanceMonitor.webIDHit = Bn(c.performance.enable_rate, e), l.PerformanceMonitor.sampleHit = Fn(c.performance.enable_rate)), c.flexible && (c.flexible.enable_rate && (l.FlexibleMonitor.webIDHit = Bn(c.flexible.enable_rate, e), l.FlexibleMonitor.sampleHit = Fn(c.flexible.enable_rate)), c.flexible.event_name_sample_rate && (l.FlexibleMonitor.eventNameHit = Qn(c.flexible.event_name_sample_rate, "event_name").flatten, l.FlexibleMonitor.eventNameSampleHit = Fn(c.flexible.event_name_sample_rate))), (null === (s = c.static_err) || void 0 === s ? void 0 : s.enable_rate) && (l.StaticErrorMonitor.webIDHit = Bn(c.static_err.enable_rate, e), l.StaticErrorMonitor.sampleHit = Fn(c.static_err.enable_rate)), c.general) {
                    var u = c.general.app_type_setting;
                    if (u) {
                        var p = {
                            type: Number(u.app_type[0].value),
                            SPA: u.app_type_spa[0].value,
                            renderType: Kn({renderRules: Xn(u.app_render_type), pid: e.pid})
                        };
                        l.BaseMonitor.appTypeSetting = p
                    }
                }
                var d = t.whitelist;
                return ce(d) && d.forEach(function (t) {
                    e.web_id === t && (l.BaseMonitor.webIDHit = !0, l.AjaxMonitor.sampleHitTrace = !0)
                }), l
            }

            function Kn(t) {
                var e = t.renderRules, n = t.pid;
                if (!e || !n) return 0;
                for (var r = 0; r < e.length; r++) {
                    var o = e[r];
                    if (ce(o.pids) && o.pids.length > 0) {
                        var i = He(o.pids);
                        if (i && i.test(n)) return o.value
                    }
                    if (o.isDefault && r === e.length - 1) return o.value
                }
                return 0
            }

            var Zn = Object.freeze({
                __proto__: null,
                convertUserSettingToMonitors: Wn,
                getClientPluginsSetting: Vn,
                convertUserSettingToCommonParams: Gn,
                convertUserSettingToFlags: $n,
                convertServerSettingToMonitors: Yn
            }), tr = function () {
                function t() {
                    var t = this;
                    this.version = "3.6.9", this.instance = function () {
                        for (var e, n, r, o, i, a, s, l, c, u, p, d, h, f, v, m = [], g = 0; g < arguments.length; g++) m[g] = arguments[g];
                        switch (m[0]) {
                            case"init":
                                return void t.init(m[1]);
                            case"config":
                                return void t.config(m[1]);
                            case"sendCustomCountLog":
                            case"sendCustomTimeLog":
                            case"emit":
                            case"send":
                                return void (t.shared.monitors.EmitMonitor ? (e = t.shared.monitors.EmitMonitor).handOut.apply(e, ie(m)) : t.instance("precollect", "emit", m));
                            case"precollect":
                                var y = t.shared.collect, _ = {
                                    pid: t.finalConfig.commonParams.pid,
                                    url: t.finalConfig.commonParams.url,
                                    context: t.finalConfig.commonParams.context
                                };
                                if ("sentry" === m[1]) return void y.sentry.push({event: m[2], params: _});
                                if ("exception" === m[1]) {
                                    var b = ne(ne({}, ae(_.context) && _.context), null === (n = m[3]) || void 0 === n ? void 0 : n.context);
                                    return _.context = b, void y.exception.push({exception: m[2], params: _})
                                }
                                if ("error" === m[1]) {
                                    if (!m[2] || !m[2][0]) return;
                                    var w = m[2][0] || {};
                                    return wn(w) && ((w.error || w.message) && y.jsError.push({
                                        event: w,
                                        params: _
                                    }), (null === (r = w.target) || void 0 === r ? void 0 : r.tagName) && y.staticError.push({
                                        event: w,
                                        params: _
                                    })), void (Sn(w) && y.jsError.push({event: w, params: _}))
                                }
                                return void ("emit" === m[1] && y.emit.push({event: m[2], params: _}));
                            case"Sentry":
                                var S = m[1];
                                if (se(S)) {
                                    var E = null === (i = null === (o = t.shared.monitors) || void 0 === o ? void 0 : o.JSErrorMonitor) || void 0 === i ? void 0 : i.getSentry();
                                    E ? S(E) : t.instance("precollect", "sentry", m[1])
                                }
                                return;
                            case"report":
                                return void (t.client && t.client.uploadQueue());
                            case"performanceSend":
                                return void (null === (l = null === (s = null === (a = t.shared.monitors) || void 0 === a ? void 0 : a.PerformanceMonitor) || void 0 === s ? void 0 : s.send) || void 0 === l || l.call(s));
                            case"performanceInit":
                                return void (null === (p = null === (u = null === (c = t.shared.monitors) || void 0 === c ? void 0 : c.PerformanceMonitor) || void 0 === u ? void 0 : u.initAsync) || void 0 === p || p.call(u));
                            case"captureException":
                                if (t.shared.monitors.JSExceptionMonitor) {
                                    var M = gn(t.shared.monitors.JSExceptionMonitor.buildEvent(m[1]), null !== (d = m[2]) && void 0 !== d ? d : {});
                                    null === (f = null === (h = t.client) || void 0 === h ? void 0 : h.sendEvent) || void 0 === f || f.call(h, M)
                                } else t.instance("precollect", "exception", m[1], m[2]);
                                return;
                            case"context":
                                return void (t.client && (null === (v = m[1]) || void 0 === v || v.call(m, t.client.contextAgent)));
                            default:
                                return
                        }
                    }, this.changeReortType = function (e) {
                        var n;
                        t.finalConfig.commonParams.report_type = e, null === (n = t.client) || void 0 === n || n.updateConfig(t.finalConfig)
                    }, this.onClose = function () {
                        Oe(t.onCloseReport, t.visibilityChange)
                    }, this.visibilityChange = function () {
                        "hidden" === document.visibilityState && t.onCloseReport(), "visible" === document.visibilityState && t.changeReortType("xhr")
                    }, this.onCloseReport = function () {
                        var e;
                        t.changeReortType("beacon"), null === (e = t.client) || void 0 === e || e.uploadQueue()
                    }, this.defaultClientConfig = In({commonParams: {version: this.version}}), this.finalConfig = In({commonParams: {version: this.version}}), this.client = void 0, this.userConfig = {}, this.inited = !1, this.configed = !1, this.shared = {
                        config: this.finalConfig,
                        instance: [],
                        collect: {sentry: [], jsError: [], staticError: [], emit: [], exception: []},
                        monitors: {}
                    }, this.baseParams = {
                        bid: this.shared.config.commonParams.bid || "",
                        pid: this.shared.config.commonParams.pid || ""
                    }, this.serverSetting = this.__SLARDAR__REPALCE__HOLDER__, this.saveInstance()
                }

                return t.prototype.handleUserConfig = function (t) {
                    var e;
                    this.userConfig = function () {
                        for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
                        for (var n = {}, r = 0; r < t.length;) n = ve(n, t[r]), r++;
                        return n
                    }(this.userConfig, t), (null === (e = this.userConfig) || void 0 === e ? void 0 : e.onlyUseLocalSetting) && (this.serverSetting = {}), this.mergeSettings()
                }, t.prototype.setBaseParams = function () {
                    this.baseParams.bid = this.shared.config.commonParams.bid || "", this.baseParams.pid = this.shared.config.commonParams.pid || ""
                }, t.prototype.init = function (t) {
                    this.handleUserConfig(t);
                    var e = this.finalConfig;
                    if (!this.inited) {
                        this.inited = !0, this.client = new xn({reportURL: _n(e.commonParams.report_domain)});
                        var n = this.setMonitors();
                        this.setupMonitors(n), this.shared.instance && ce(this.shared.instance) && this.shared.instance.push(e.commonParams.bid), this.getServerSetting(e.commonParams.bid), this.onClose()
                    }
                }, t.prototype.config = function (t) {
                    var e;
                    if (this.configed = !0, this.inited) {
                        this.handleUserConfig(t);
                        var n = this.finalConfig;
                        null === (e = this.client) || void 0 === e || e.updateConfig(n)
                    } else this.init(t);
                    this.tryUnlockClient()
                }, t.prototype.getServerSetting = function (t) {
                    var e = this;
                    if (this.serverSetting) this.handleServerSetting(); else {
                        var n = bn(this.finalConfig.commonParams.report_domain) + "?bid=" + t;
                        Te.get(n, {
                            success: function (t) {
                                try {
                                    e.serverSetting = t.data || {}, e.handleServerSetting()
                                } catch (n) {
                                    e.handleServerSetting()
                                }
                            }, fail: function () {
                                e.handleServerSetting()
                            }, withCredentials: !0
                        })
                    }
                }, t.prototype.setMonitors = function () {
                    var t, e = this, n = [], r = this.finalConfig.flags, o = this.finalConfig.commonParams;
                    return r.hookPath && n.push(new sn), r.hookXHR && n.push(new Ze({
                        commonParams: {
                            web_id: o.slardar_web_id,
                            bid: o.bid
                        }, ajaxMonitorOptions: this.finalConfig.monitors.AjaxMonitor
                    })), r.hookFetch && n.push(new nn({
                        commonParams: {web_id: o.slardar_web_id, bid: o.bid},
                        ajaxMonitorOptions: this.finalConfig.monitors.AjaxMonitor
                    })), r.enableFMP && n.push(new on), (null === (t = this.shared) || void 0 === t ? void 0 : t.monitors) && n.forEach(function (t) {
                        e.shared.monitors[t.name] = t
                    }), n
                }, t.prototype.setupMonitors = function (t) {
                    var e = this;
                    this.client && this.client.sendEvent && t.forEach(function (t) {
                        var n;
                        "FMPMonitor" === t.name ? e.finalConfig.flags.enableFMP && t.setup(xe) : t.setup(null === (n = e.client) || void 0 === n ? void 0 : n.sendEvent)
                    })
                }, t.prototype.shouldSetClientEnable = function () {
                    return "production" === this.finalConfig.commonParams.env
                }, t.prototype.tryUnlockClient = function () {
                    var t;
                    null === (t = this.client) || void 0 === t || t.setEnable(this.shouldSetClientEnable() && this.configed && !!this.serverSetting)
                }, t.prototype.handleServerSetting = function () {
                    var t, e;
                    this.mergeSettings();
                    var n = this.finalConfig;
                    this.client.updateConfig(n), this.client.setTransport(), this.tryUnlockClient(), this.client.sendPageview(), this.shared.transport = this.client.transport, this.shared.sendEvent = this.client.sendEvent.bind(this.client), this.setCookie(n.commonParams.slardar_web_id), null === (t = this.shared.monitors.FetchMonitor) || void 0 === t || t.updateConfig({
                        commonParams: {
                            web_id: n.commonParams.slardar_web_id,
                            bid: n.commonParams.bid
                        }, ajaxMonitorOptions: n.monitors.AjaxMonitor
                    }), null === (e = this.shared.monitors.AjaxMonitor) || void 0 === e || e.updateConfig({
                        commonParams: {
                            web_id: n.commonParams.slardar_web_id,
                            bid: n.commonParams.bid
                        }, ajaxMonitorOptions: n.monitors.AjaxMonitor
                    }), this.loadMonitors(), n.flags.enableCatchJSError && this.loadSentry()
                }, t.prototype.loadSentry = function () {
                    var t = this;
                    Ye(hn, function () {
                        var e = En({name: "SetSentryMonitors", version: t.version});
                        if (e) {
                            var n = new e({
                                hookConsole: t.finalConfig.flags.hookConsole,
                                hookDom: t.finalConfig.flags.hookDom,
                                memoryRecordMonitor: t.shared.monitors.MemoryRecordMonitor,
                                collect: t.shared.collect,
                                sendEvent: t.client.sendEvent,
                                jsErrorOptions: t.shared.config.monitors.JSErrorMonitor
                            });
                            n.init(), t.shared.monitors = ne(ne({}, t.shared.monitors), n.getInstalledMonitors())
                        }
                    })
                }, t.prototype.loadMonitors = function () {
                    var t = this;
                    Ye("https://sf1-scmcdn-tos.pstatp.com/goofy/slardar/fe/sdk/plugins/monitors.3.6.9.cn.js", function () {
                        var e, n = En({name: "SetMonitors", version: t.version});
                        if (n) try {
                            var r = new n({
                                config: t.finalConfig,
                                fmpMonitor: t.shared.monitors.FMPMonitor,
                                report: function () {
                                    return t.instance("report")
                                },
                                sendEvent: null === (e = t.client) || void 0 === e ? void 0 : e.sendEvent,
                                captureException: function (e) {
                                    return t.instance("Sentry", function (t) {
                                        t.captureException(e)
                                    })
                                },
                                collect: t.shared.collect
                            });
                            r.init(), t.shared.monitors = ne(ne({}, t.shared.monitors), r.getInstalledMonitors())
                        } catch (o) {
                            t.instance("Sentry", function (t) {
                                t.captureException(o);
                                try {
                                    t.withScope(function (e) {
                                        e.setTag("from", "slardar-sdk"), t.captureMessage("SLARDAR_ERROR: " + typeof n), t.captureMessage("SLARDAR_ERROR: " + n.toString())
                                    })
                                } catch (e) {
                                    t.withScope(function (n) {
                                        n.setTag("from", "slardar-sdk"), t.captureException(e)
                                    })
                                }
                            })
                        }
                    })
                }, t.prototype.setCookie = function (t) {
                    t && (document.cookie = "MONITOR_WEB_ID=" + t + ";max-age=7776000;domain=" + location.hostname + ";path=/")
                }, t.prototype.normalizeSetting = function (t) {
                    return {
                        commonParams: this.getClientCommonParams(t),
                        flags: this.getClientFlags(t),
                        plugins: this.getClientPluginsSetting(t),
                        monitors: this.getClientMonitorsSetting(t),
                        custom: this.getClientCustom(t)
                    }
                }, t.prototype.normalizeServerSetting = function (t) {
                    return ue(t, "setting") ? {
                        commonParams: Gn(t),
                        monitors: Yn(t, this.getNormoalizeInfo())
                    } : this.normalizeSetting({
                        cookieid: t.cookieid,
                        reportDomain: t.reportDomain,
                        bid: t.bid,
                        plugins: t.plugins
                    })
                }, t.prototype.mergeSettings = function () {
                    var t = this.serverSetting ? this.normalizeServerSetting(this.serverSetting) : {},
                        e = this.normalizeSetting(this.userConfig), n = de(this.defaultClientConfig, t, e);
                    n.commonParams.reportURLSingle = yn(n.commonParams.report_domain), n.commonParams.pid = this.getPid(n), this.shared.config = n, this.setBaseParams(), this.finalConfig = n
                }, t.prototype.getPid = function (t) {
                    if (t.commonParams.pid) return t.commonParams.pid;
                    var e = t.monitors.BaseMonitor;
                    return 1 === e.appTypeSetting.type && "hash" === e.appTypeSetting.SPA ? location.hash.slice(1) || "/" : location.pathname
                }, t.prototype.getClientCommonParams = function (t) {
                    return Gn(t)
                }, t.prototype.getClientFlags = function (t) {
                    return $n(t)
                }, t.prototype.getClientCustom = function (t) {
                    var e = {};
                    return t.beforeSend && se(t.beforeSend) && (e.beforeSend = t.beforeSend), e
                }, t.prototype.getClientMonitorsSetting = function (t) {
                    return Wn({setting: t, info: this.getNormoalizeInfo()})
                }, t.prototype.getClientPluginsSetting = function (t) {
                    return Vn(t)
                }, t.prototype.getNormoalizeInfo = function () {
                    return {
                        web_id: this.finalConfig.commonParams.slardar_web_id,
                        pid: this.finalConfig.commonParams.pid
                    }
                }, t.prototype.saveInstance = function () {
                    window.__SLARDAR__ || (window.__SLARDAR__ = {}), window.__SLARDAR__ && !ce(window.__SLARDAR__.instances) && (window.__SLARDAR__.instances = []), window.__SLARDAR__ && ce(window.__SLARDAR__.instances) && window.__SLARDAR__.instances.push({version: this.version})
                }, t
            }(), er = xe;
            if (be()) {
                var nr = new tr;
                (er = nr.instance).version = nr.version, er.shared = nr.shared, er.SlardarBrowser = tr, er._baseParams = nr.baseParams
            }
            var rr = er, or = Object.freeze({__proto__: null}), ir = Object.freeze({__proto__: null}),
                ar = Object.freeze({__proto__: null});
            if ("function" === typeof window.addEventListener) {
                var sr = function () {
                    for (var t = [], e = 0; e < arguments.length; e++) t[e] = arguments[e];
                    rr("precollect", "error", t)
                };
                window.addEventListener("error", sr, !0), window.addEventListener("unhandledrejection", sr)
            }
            e.default = rr
        }.call(this, n(35))
    }
}]);
